<!DOCTYPE html>
<html>
  <head>
    <title>注册用户</title>
  </head>
  <body>
    <form method="POST">
      {{ form.hidden_tag() }}
      {{ form.name.label }}
      {{ form.name }}
      {{ form.password.label }}
      {{ form.password }}
      {{ form.confirm.label }}
      {{ form.confirm }}
      {{ form.submit }}
    </form>
    <div>
      <ul>
        {% for error in form.errors.values() %}
          {% for e in error %}
            <li>{{ e }}</li>
          {% endfor %}
        {% endfor %}
      </ul>
    </div>
  </body>
</html>